//
//  ADViewCell.m
//  CYWFrame
//
//  Created by 于顺燊 on 2018/10/11.
//  Copyright © 2018年 Macx. All rights reserved.
//

#import "ADViewCell.h"

@implementation ADViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
	[self.linkBtn addTarget:self action:@selector(jumpToLink:) forControlEvents:UIControlEventTouchUpInside];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setInfo:(NSDictionary *)info
{
	NSLog(@"%@",info);
	if (_info != info) {
		_info = info;
	}
	self.titleText.text = info[@"title"];
	self.content.text = info[@"content"];
}


- (void)jumpToLink:(UIButton *)sender {
	[self.delegate jumpToLink:self.info[@"url"]];
}

@end
